﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GRWL.BZSC.DataLinq;
using GRWL.BZSC.Common;

namespace GRWL.BZSC.WCFLib
{
    #region 物料
    /// <summary>
    /// 带关联数据的物料
    /// </summary>
    public class XMaterial
    {
        #region Material成员
        public TB_Material Material { get; set; }
        #endregion
        /// <summary>
        /// 物料库存Id
        /// </summary>
        public int? StockId { get; set; }
        /// <summary>
        /// 物料库存仓库名称
        /// </summary>
        public string StockDepotName { get; set; }
        /// <summary>
        /// 物料当前库存
        /// </summary>
        public decimal? CurrentStockNum { get; set; }
        /// <summary>
        /// 期初库存
        /// </summary>
        public decimal? BeginningNum { get; set; }
        /// <summary>
        /// 物料所在库位
        /// </summary>
        public string DepotArea { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string BatchNo { get; set; }
        public string CategoryCode { get; set; }
        public string CategoryName { get; set; }
        public string TraderName { get; set; }
        /// <summary>
        /// 主仓库代号
        /// </summary>
        public string DepotCode { get; set; }
        /// <summary>
        /// 主仓库名称
        /// </summary>
        public string DepotName { get; set; }
        public string WaitingDepotCode { get; set; }
        public string WaitingDepotName { get; set; }
        public string BadDepotCode { get; set; }
        public string BadDepotName { get; set; }
        public string ScrapDepotCode { get; set; }
        public string ScrapDepotName { get; set; }
        public string DepartmentCode { get; set; }
        public string DepartmentName { get; set; }
        /// <summary>
        /// 工序代号
        /// </summary>
        public string WorkstageCode { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string WorkstageName { get; set; }
    }

    /// <summary>
    /// 查询物料返回类型
    /// </summary>
    public class QMaterial
    {
        /// <summary>
        /// 系统编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 代号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 名称
        /// </summary>
        public string CnName { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 物料库存Id
        /// </summary>
        public int? StockId { get; set; }
        /// <summary>
        /// 物料库存仓库名称
        /// </summary>
        public string StockDepotName { get; set; }
        /// <summary>
        /// 物料当前库存
        /// </summary>
        public decimal? CurrentStockNum { get; set; }
        /// <summary>
        /// 物料所在库位
        /// </summary>
        public string DepotArea { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string BatchNo { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 部门Id
        /// </summary>
        //public int? DepartmentId { get; set; }
        /// <summary>
        /// 部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }
        /// <summary>
        /// 是否停用
        /// </summary>
        public bool Unusable { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 主供应商Id
        /// </summary>
        //public int? ProviderId { get; set; }
        /// <summary>
        /// 主供应商代号
        /// </summary>
        public string ProviderCode { get; set; }
        /// <summary>
        /// 主供应商名称
        /// </summary>
        public string ProviderName { get; set; }
        /// <summary>
        /// 来源
        /// </summary>
        public string Source { get; set; }
        /// <summary>
        /// 主工程Id
        /// </summary>
        public int? PrjtId { get; set; }
        /// <summary>
        /// 主工程代号
        /// </summary>
        public string PrjtCode { get; set; }
        /// <summary>
        /// 材料分类名
        /// </summary>
        public string CategoryName { get; set; }
    }
    #endregion

    #region 收发货

    /// <summary>
    /// 带关联数据的收发货单据
    /// </summary>
    public class XShipping
    {
        #region 收发货单实体属性
        public TB_Shipping Shipping { get; set; }
        #endregion

        #region 其他关联属性

        /// <summary>
        /// 制单人代号
        /// </summary>
        public string OperatorCode { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 审批人代号
        /// </summary>
        public string AssessorCode { get; set; }
        /// <summary>
        /// 审批人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 往来单位代号
        /// </summary>
        public string TraderCode { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 业务人员代号
        /// </summary>
        public string BusinessCode { get; set; }
        /// <summary>
        /// 业务人员名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 修改人代号
        /// </summary>
        public string MenderCode { get; set; }
        /// <summary>
        /// 修改人名称
        /// </summary>
        public string MenderName { get; set; }

        #endregion
    }

    /// <summary>
    /// 查询收发货单据时返回的数据类型
    /// </summary>
    public class QShipping
    {
        /// <summary>
        /// 收发货单系统编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 收发货单代号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 订单系统编号
        /// </summary>
        //public int? OrderId { get; set; }
        /// <summary>
        /// 订单代号
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 收发货日期
        /// </summary>
        public DateTime? ShippingDate { get; set; }
        /// <summary>
        /// 往来单位系统编码
        /// </summary>
        //public int? Trader { get; set; }
        /// <summary>
        /// 往来单位代号
        /// </summary>
        public string TraderCode { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 物料系统编号
        /// </summary>
        //public int MaterialId { get; set; }
        /// <summary>
        /// 物料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string MaterialSpecs { get; set; }
        /// <summary>
        /// 收发货数量
        /// </summary>
        public decimal? ShippingNum { get; set; }
        /// <summary>
        /// 收发货地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 制单人系统编号
        /// </summary>
        //public int? OperatorId { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 批准人系统编号
        /// </summary>
        //public int? AssessorId { get; set; }
        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 物料分类系统编号
        /// </summary>
        //public int? CategoryId { get; set; }
        /// <summary>
        /// 物料分类名称
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 收发货备注
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 收发货明细备注
        /// </summary>
        public string DetailMemo { get; set; }
        public string Status { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 上级单号
        /// </summary>
        public string PrevCode { get; set; }
    }

    /// <summary>
    /// 带关联数据的收发货明细
    /// </summary>
    public class XShippingDetial
    {
        #region 收发货明细实体属性
        public TB_ShippingDetail ShippingDetail { get; set; }
        #endregion

        /// <summary>
        /// 材料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 材料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 材料有效日期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 收发货仓库代号
        /// </summary>
        public string DepotCode { get; set; }
        /// <summary>
        /// 收发货仓库名称
        /// </summary>
        public string DepotName { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public string Unit { get; set; }
    }

    #endregion

    #region 请购
    /// <summary>
    /// 带关联数据的请购单
    /// </summary>
    public class XRequisition
    {
        /// <summary>
        /// 请购单实体
        /// </summary>
        public TB_Requisition Requisition { get; set; }
        /// <summary>
        /// 制表人代号
        /// </summary>
        public string OperatorCode { get; set; }
        /// <summary>
        /// 制表人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 审批人代号
        /// </summary>
        public string AssessorCode { get; set; }
        /// <summary>
        /// 审批人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 请购人代号
        /// </summary>
        public string BusinessCode { get; set; }
        /// <summary>
        /// 请购人名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 修改人代号
        /// </summary>
        public string MenderCode { get; set; }
        /// <summary>
        /// 修改人名称
        /// </summary>
        public string MenderName { get; set; }
    }

    /// <summary>
    /// 查询带关联数据的请购单
    /// </summary>
    public class QRequisition
    {
        /// <summary>
        /// 请购单系统编码
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 请购单代号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 请购日期
        /// </summary>
        public DateTime? ReqDate { get; set; }

        /// <summary>
        /// 请购物料系统编号
        /// </summary>
        //public int? MaterialId { get; set; }

        /// <summary>
        /// 请购物料代号
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 请购物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 请购物料规格
        /// </summary>
        public string Specs { get; set; }

        /// <summary>
        /// 物料分类代号
        /// </summary>
        public string CategoryCode { get; set; }

        /// <summary>
        /// 物料分类名称
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 请购物料数量
        /// </summary>
        public decimal? Num { get; set; }

        /// <summary>
        /// 制单人代号
        /// </summary>
        public string OperatorCode { get; set; }

        /// <summary>
        /// 制单人呢名称
        /// </summary>
        public string OperatorName { get; set; }

        /// <summary>
        /// 请购部门系统编号
        /// </summary>
        public string DepartmentCode { get; set; }

        /// <summary>
        /// 请购部门名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 请购部门代号
        /// </summary>
        public string BusinessmanCode { get; set; }

        /// <summary>
        /// 请购人名称
        /// </summary>
        public string BusinessmanName { get; set; }

        /// <summary>
        /// 批准人系统编号
        /// </summary>
        public string AssessorCode { get; set; }

        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssessorName { get; set; }

        /// <summary>
        /// 请购明细备注
        /// </summary>
        public string DetailMemo { get; set; }

        /// <summary>
        /// 审批批注
        /// </summary>
        public string Memo { get; set; }

        public string Status { get; set; }

        /// <summary>
        /// 是否审批
        /// </summary>
        public bool IsVerify { get; set; }
        /// <summary>
        /// 交易人名称
        /// </summary>
        public string TraderName { get; set; }
    }

    /// <summary>
    /// 带关联数据的请购明细
    /// </summary>
    public class XReqDetial
    {
        /// <summary>
        /// 请购明细实体
        /// </summary>
        public TB_ReqDetail ReqDetial { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 有效日期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
    }
    #endregion

    #region 领料
    /// <summary>
    /// 带关联的领料单
    /// </summary>
    public class XRecvMaterial
    {
        /// <summary>
        /// 领料单实体
        /// </summary>
        public TB_RecvMaterial RecvMaterial { get; set; }
        /// <summary>
        /// 制单人代号
        /// </summary>
        public string OperatorCode { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 批准人代号
        /// </summary>
        public string AssessorCode { get; set; }
        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 领料人代号
        /// </summary>
        public string BusinessCode { get; set; }
        /// <summary>
        /// 领料人名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 修改人代号
        /// </summary>
        public string MenderCode { get; set; }
        /// <summary>
        /// 修改人名称
        /// </summary>
        public string MenderName { get; set; }

    }

    /// <summary>
    /// 查询领料单
    /// </summary>
    public class QRecvMaterial
    {
        /// <summary>
        /// 领料明细Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 生产单代号
        /// </summary>
        public string RqrtCode { get; set; }
        /// <summary>
        /// 订单代号
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 领料单代号
        /// </summary>
        public string RecvMtrlCode { get; set; }
        /// <summary>
        /// 领料日期
        /// </summary>
        public DateTime? RecvDate { get; set; }
        /// <summary>
        /// 物料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 领用数量
        /// </summary>
        public decimal? Num { get; set; }
        /// <summary>
        /// 领料部门
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 制表人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 批准人
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 物料分类
        /// </summary>
        public string MaterialCategory { get; set; }
        /// <summary>
        /// 单据备注
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 明细备注
        /// </summary>
        public string DetialMemo { get; set; }
        /// <summary>
        /// 领料类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        public string Status { get; set; }
        public bool IsVerify { get; set; }
    }

    /// <summary>
    /// 带关联的领料明细
    /// </summary>
    public class XRecvDetail
    {
        /// <summary>
        /// 领料明细实体
        /// </summary>
        public TB_RecvDetail RecvDetail { get; set; }
        /// <summary>
        /// 材料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 材料有效期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 材料单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 仓库代号
        /// </summary>
        public string DepotCode { get; set; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string DepotName { get; set; }
        /// <summary>
        /// 物料品牌
        /// </summary>
        public string Brand { get; set; }
        /// <summary>
        /// 物料分类代号
        /// </summary>
        public string CategoryCode { get; set; }
        /// <summary>
        /// 物料分类名称
        /// </summary>
        public string CategoryName { get; set; }

    }

    #endregion

    #region 工序BOM

    /// <summary>
    /// 工序
    /// </summary>
    public class WorkstageTreeNode
    {
        /// <summary>
        /// 工序系统编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 工序代号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 上级工序
        /// </summary>
        public int ParentId { get; set; }
    }

    /// <summary>
    /// 带关联数据的产品工程
    /// </summary>
    public class XPrdtPrjt
    {
        /// <summary>
        /// 产品工程实体
        /// </summary>
        public TB_ProductProject PrdtPrjt { get; set; }
        /// <summary>
        ///  物料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 工程师代号
        /// </summary>
        public string EngineerCode { get; set; }
        /// <summary>
        /// 工程师名称
        /// </summary>
        public string EngineerName { get; set; }
        /// <summary>
        /// 提交人代号
        /// </summary>
        public string SubmitManCode { get; set; }
        /// <summary>
        /// 提交人名称
        /// </summary>
        public string SubmitManName { get; set; }
        /// <summary>
        /// 审批人代号
        /// </summary>
        public string AssessorCode { get; set; }
        /// <summary>
        /// 审批人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 物料分类
        /// </summary>
        public int? CategoryId { get; set; }
    }

    /// <summary>
    /// 搜索带关联数据的产品工程
    /// </summary>
    public class QPrdtPrjt
    {
        /// <summary>
        /// 产品工程系统编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 产品工程代号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        //public int MaterialId { get; set; }

        /// <summary>
        /// 物料代号
        /// </summary>
        public string MaterialCode { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public string Specs { get; set; }

        /// <summary>
        /// 产品工程版本号
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 是否标准版本
        /// </summary>
        public bool IsStandard { get; set; }

        /// <summary>
        /// 工程师名称
        /// </summary>
        public string EngineerName { get; set; }

        /// <summary>
        /// 是否提交
        /// </summary>
        public bool IsSubmit { get; set; }

        /// <summary>
        /// 提交人名称
        /// </summary>
        public string SubmitManName { get; set; }

        /// <summary>
        /// 提交状态
        /// </summary>
        public short SubmitStatus { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public short VerifyStatus { get; set; }

        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssessorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }

        /// <summary>
        /// 图号
        /// </summary>
        public string PicCode { get; set; }

        /// <summary>
        /// 审批
        /// </summary>
        public bool IsVerify { get; set; }
        /// <summary>
        /// 总共时
        /// </summary>
        public int? Hours { get; set; }
    }

    /// <summary>
    /// 产品工程树节点
    /// </summary>
    public class PrdtPrjtNode
    {
        /// <summary>
        /// 产品工程系统编号
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 产品工程代号
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 产品工程版本号
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 是否标准版本
        /// </summary>
        public bool IsStandard { get; set; }

        /// <summary>
        /// 物料系统编号
        /// </summary>
        public int? MaterialId { get; set; }
        /// <summary>
        /// 物料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 物料分类系统编号
        /// </summary>
        public int? CategoryId { get; set; }
        /// <summary>
        /// 工程是否已提交
        /// </summary>
        public bool IsSubmit { get; set; }
        /// <summary>
        /// 提交状态
        /// </summary>
        public short SubmitStatus { get; set; }
        /// <summary>
        /// 工程是否已审批
        /// </summary>
        public bool IsVerify { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public short VerifyStatus { get; set; }
        /// <summary>
        /// 确认放产
        /// </summary>
        public bool IsRelease { get; set; }
    }

    /// <summary>
    /// 带关联的工程工序
    /// </summary>
    public class XPrjtWorkstage
    {
        /// <summary>
        /// 工程工序实体
        /// </summary>
        public TB_ProjectWorkstage PrjtWorkstage { get; set; }
        /// <summary>
        /// 工序代号
        /// </summary>
        public string WorkstageCode { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string WorkstageName { get; set; }
    }

    /// <summary>
    /// 产品工程工序树节点
    /// </summary>
    public class PrjtWorkstageNode
    {
        /// <summary>
        /// 产品工序
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 产品工程
        /// </summary>
        public int PrjtId { get; set; }
        /// <summary>
        /// 所属工程代号
        /// </summary>
        public string PrjtCode { get; set; }
        /// <summary>
        /// 加工顺序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 工序Id
        /// </summary>
        public int WorkstageId { get; set; }
        /// <summary>
        /// 工序代号
        /// </summary>
        public string WorkstageCode { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string WorkstageName { get; set; }
    }

    /// <summary>
    /// 带关联的工程元件
    /// </summary>
    public class XPrjtElement
    {
        /// <summary>
        /// 工程元件实体
        /// </summary>
        public TB_ProjectElement PrjtElement { get; set; }
        /// <summary>
        /// 元件所属工程Id
        /// </summary>
        public int PrjtId { get; set; }
        /// <summary>
        /// 元件所属工程代号
        /// </summary>
        public string PrjtCode { get; set; }
        /// <summary>
        /// 所属工序加工顺序
        /// </summary>
        public int MachiningSort { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料有效期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 物料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public string Unit { get; set; }
        public int? NextPrjtId { get; set; }
        public string NextPrjtCode { get; set; }
        public bool? NextPrjtIsSubmit { get; set; }
        public bool? NextPrjtIsVerify { get; set; }
    }

    /// <summary>
    /// 工程工序所需元件树节点
    /// </summary>
    public class PrjtElementNode
    {
        /// <summary>
        /// 元件编号
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 元件序号
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 工程工序编号
        /// </summary>
        public int PrjtWorkstageId { get; set; }
        /// <summary>
        /// 元件物资Id
        /// </summary>
        public int MaterialId { get; set; }
        /// <summary>
        /// 元件物资代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 元件物资名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 元件规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 元件用量
        /// </summary>
        public decimal Dosage { get; set; }
        /// <summary>
        /// 下级工程Id
        /// </summary>
        public int? NextPrjtId { get; set; }
        /// <summary>
        /// 下级工程代号
        /// </summary>
        public string NextPrjtCode { get; set; }
        /// <summary>
        /// 产品工程工序加工顺序
        /// </summary>
        public int PrjtWorkstageSort { get; set; }
        /// <summary>
        /// 所属工程Id
        /// </summary>
        public int PrdtPrjtId { get; set; }
        /// <summary>
        /// 所属工程代号
        /// </summary>
        public string PrdtPrjtCode { get; set; }
        public bool? NextPrjtIsSubmit { get; set; }
        public bool? NextPrjtIsVerify { get; set; }

    }

    #endregion

    #region 用户
    /// <summary>
    /// 带关联数据的用户
    /// </summary>
    public class XUser
    {
        #region 用户数据类基本属性
        public TB_User User { get; set; }
        #endregion

        #region 其他属性

        /// <summary>
        /// 所属部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        #endregion
    }

    /// <summary>
    /// 登录返回结果
    /// </summary>
    public class LoginResult
    {
        /// <summary>
        /// 用户实体
        /// </summary>
        public XUser User { get; set; }
        /// <summary>
        /// 登录返回错误消息
        /// </summary>
        public string ErrorMsg { get; set; }
    }
    #endregion

    #region 质检
    public class XQC
    {
        /// <summary>
        /// 质检单实体
        /// </summary>
        public TB_QC QC { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 往来单位代号
        /// </summary>
        public string TraderCode { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
    }

    /// <summary>
    /// 查询质检单
    /// </summary>
    public class QQC
    {
        /// <summary>
        /// 质检单Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 质检单代号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 质检单日期
        /// </summary>
        public DateTime? QCDate { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 物料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 检验类型
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 是否已审核
        /// </summary>
        public bool IsVerify { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string Memo { get; set; }
        /// <summary>
        /// 单据审批状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 上一个流程Id
        /// </summary>
        public int? PrevId { get; set; }
        /// <summary>
        /// 上一个流程编码
        /// </summary>
        public string PrevCode { get; set; }
        /// <summary>
        /// 上一个流程类型
        /// </summary>
        public string PrevType { get; set; }
        /// <summary>
        /// 明细备注
        /// </summary>
        public string DetailMemo { get; set; }
        /// <summary>
        /// 材料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 检查数量
        /// </summary>
        public decimal? CheckNum { get; set; }
        /// <summary>
        /// 交货数量
        /// </summary>
        public decimal? DeliveryNum { get; set; }
    }

    /// <summary>
    /// 带关联的质检明细
    /// </summary>
    public class XQCDetail
    {
        /// <summary>
        /// 质检明细实体
        /// </summary>
        public TB_QCDetail QCDetail { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 检验人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 质检结果名称
        /// </summary>
        public string QCResultName { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public string Unit { get; set; }

    }

    /// <summary>
    /// 带关联的质检问题
    /// </summary>
    public class XQCProblem
    {
        /// <summary>
        /// 质检问题实体
        /// </summary>
        public TB_QCProblem QCProblem { get; set; }
        /// <summary>
        /// 问题名称
        /// </summary>
        public string ProblemName { get; set; }
        /// <summary>
        /// 报废标记
        /// </summary>
        public bool IsScrap { get; set; }
    }
    #endregion

    #region 报价
    /// <summary>
    /// 带关联的报价单
    /// </summary>
    public class XQuotation
    {
        /// <summary>
        /// 报价单实体
        /// </summary>
        public TB_Quotation Quotation { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 批准人
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 往来单位代码
        /// </summary>
        public string TraderCode { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 部门代码
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 业务员代号
        /// </summary>
        public string BusinessCode { get; set; }
        /// <summary>
        /// 业务员名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 税目代号
        /// </summary>
        public string TaxCode { get; set; }
        /// <summary>
        /// 税目名称
        /// </summary>
        public string TaxName { get; set; }
        /// <summary>
        /// 修改人名称
        /// </summary>
        public string MenderName { get; set; }
    }

    /// <summary>
    /// 查询报价单
    /// </summary>
    public class QQuotation
    {
        /// <summary>
        /// 报价单Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 报价单Code
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 业务人员名称
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 材料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 材料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 不含税单价
        /// </summary>
        public decimal? Price { get; set; }
        /// <summary>
        /// 含税单价
        /// </summary>
        public decimal? TaxPrice { get; set; }
        /// <summary>
        /// 税率
        /// </summary>
        public decimal? TaxRate { get; set; }
        /// <summary>
        /// 往来单位物料模型
        /// </summary>
        public string TraderMtrlModel { get; set; }
        /// <summary>
        /// 往来单位物料名称
        /// </summary>
        public string TraderMtrlName { get; set; }
        /// <summary>
        /// 不含税金额
        /// </summary>
        public decimal? Amount { get; set; }
        /// <summary>
        /// 含税金额
        /// </summary>
        public decimal? TaxAmount { get; set; }
        /// <summary>
        /// 材料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 材料单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 报价单有效期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 报价单状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 操作人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 报价日期
        /// </summary>
        public DateTime? QuoteDate { get; set; }
        /// <summary>
        /// 是否审批
        /// </summary>
        public bool IsVerify { get; set; }
    }
    /// <summary>
    /// 带关联的报价明细
    /// </summary>
    public class XQuoteDetial
    {
        /// <summary>
        /// 报价明细实体
        /// </summary>
        public TB_QuoteDetail QuoteDetail { get; set; }
        /// <summary>
        /// 材料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 材料规格
        /// </summary>
        public string Specs { get; set; }
        /// 材料单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 材料有效期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 材料品牌
        /// </summary>
        public string Brand { get; set; }
        /// <summary>
        /// 材料分类名
        /// </summary>
        public string CategoryName { get; set; }
    }
    #endregion

    #region 订单
    /// <summary>
    /// 带关联的订单
    /// </summary>
    public class XOrder
    {
        /// <summary>
        /// 订单实体
        /// </summary>
        public TB_Order Order { get; set; }
        /// <summary>
        /// 往来单位代号
        /// </summary>
        public string TraderCode { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 制单人名称
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 部门代号
        /// </summary>
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 业务员代号
        /// </summary>
        public string BusinessmanCode { get; set; }
        /// <summary>
        /// 业务员名称
        /// </summary>
        public string BusinessmanName { get; set; }
        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 修改人名
        /// </summary>
        public string MenderName { get; set; }
    }

    /// <summary>
    /// 查询带关联的订单
    /// </summary>
    public class QOrder
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 订单明细Id
        /// </summary>
        public int DetailId { get; set; }
        /// <summary>
        /// 订单类型
        /// </summary>
        public string OrderType { get; set; }
        /// <summary>
        /// 代号
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime? OrderDate { get; set; }
        /// <summary>
        /// 往来单位代号
        /// </summary>
        public string TraderCode { get; set; }
        /// <summary>
        /// 往来单位名称
        /// </summary>
        public string TraderName { get; set; }
        /// <summary>
        /// 客户单号
        /// </summary>
        public string TraderBill { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int MaterialId { get; set; }
        /// <summary>
        /// 物料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 是否虚设件
        /// </summary>
        public bool IsNominal { get; set; }
        /// <summary>
        /// 产品主工程Id
        /// </summary>
        public int? PrjtId { get; set; }
        /// <summary>
        /// 产品主工程代号
        /// </summary>
        public string PrjtCode { get; set; }
        /// <summary>
        /// 是否转生产
        /// </summary>
        public bool IsProduce { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 物料分类
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 业务员名
        /// </summary>
        public string BusinessName { get; set; }
        /// <summary>
        /// 收发货地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 批准人名称
        /// </summary>
        public string AssesorName { get; set; }
        /// <summary>
        /// 明细备注
        /// </summary>
        public string DetailMemo { get; set; }
        /// <summary>
        /// 是否关闭
        /// </summary>
        public bool IsClosed { get; set; }
        /// <summary>
        /// 订货数量
        /// </summary>
        public decimal? Num { get; set; }
        /// <summary>
        /// 收发货完成数量
        /// </summary>
        public decimal? FinishedNum { get; set; }
        /// <summary>
        /// 订单交收日期
        /// </summary>
        public DateTime? DeliveryDate { get; set; }
        /// <summary>
        /// 上一流程单据明细Id
        /// </summary>
        public int? PrevId { get; set; }
        /// <summary>
        /// 上一流程单据号
        /// </summary>
        public string PrevCode { get; set; }
        /// <summary>
        /// 上一流程单据类型
        /// </summary>
        public string PrevType { get; set; }
        public string Status { get; set; }
        public bool IsVerify { get; set; }
    }

    /// <summary>
    /// 带关联的订单明细
    /// </summary>
    public class XOrderDetail
    {
        /// <summary>
        /// 订单明细实体
        /// </summary>
        public TB_OrderDetail OrderDetail;
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName;
        /// <summary>
        /// 物料规格
        /// </summary>
        public string Specs;
        /// <summary>
        /// 物料备注
        /// </summary>
        public string MtrlMemo;
        /// <summary>
        /// 物料有效期
        /// </summary>
        public DateTime? Expire;
        /// <summary>
        /// 物料单位
        /// </summary>
        public string Unit;
        /// <summary>
        /// 产品工程代号
        /// </summary>
        public string PrdtPrjtCode;
    }
    #endregion

    #region 需求计划
    /// <summary>
    /// 带关联的需求计划
    /// </summary>    
    public class XRequirement
    {
        /// <summary>
        /// 需求计划实体
        /// </summary>
        public TB_Requirement Requirement { get; set; }
        public string DepartmentCode { get; set; }
        /// <summary>
        /// 计划部门名
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 操作员名
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 审批人名称
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 修改人名称
        /// </summary>
        public string MenderName { get; set; }
    }

    /// <summary>
    /// 搜索需求计划
    /// </summary>
    public class QRequirement
    {
        /// <summary>
        /// 需求计划Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 需求计划号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 关联订单号
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 需求计划日期
        /// </summary>
        public DateTime? RqrtDate { get; set; }
        /// <summary>
        /// 制表人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 订单产品代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 需求计划规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 部门名称
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 发放完成标记
        /// </summary>
        public bool IsRelease { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public string AssessorName { get; set; }
    }

    /// <summary>
    /// 带关联的需求计划明细
    /// </summary>
    public class XRqrtDetail
    {
        /// <summary>
        /// 需求计划明细实体
        /// </summary>
        public TB_RqrtDetail RqrtDetail { get; set; }
        /// <summary>
        /// 物料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 物料分类
        /// </summary>
        public string CategoryName { get; set; }
        /// <summary>
        /// 物料单位
        /// </summary>
        public string Unit { get; set; }
        /// <summary>
        /// 明细生产部门
        /// </summary>
        public string DepartmentName { get; set; }
    }
    #endregion

    #region 生产单
    /// <summary>
    /// 带关联的生产单
    /// </summary>
    public class XProduction
    {
        /// <summary>
        /// 生产单实体
        /// </summary>
        public TB_Production Production { get; set; }
        public string OperatorName { get; set; }
        public string DepartmentCode { get; set; }
        public string DepartmentName { get; set; }
        public string MenderName { get; set; }
        public string AssessorName { get; set; }
    }

    /// <summary>
    /// 搜索生产单
    /// </summary>
    public class QProduction
    {
        /// <summary>
        /// 生产单Id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 生产单号
        /// </summary>
        public string Code { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string OrderCode { get; set; }
        /// <summary>
        /// 订单日期
        /// </summary>
        public DateTime? OrderDate { get; set; }
        /// <summary>
        /// 需求计划日期
        /// </summary>
        public DateTime? RqrtDate { get; set; }
        /// <summary>
        /// 生产单日期
        /// </summary>
        public DateTime? PrdnDate { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 材料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 材料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 生产材料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 材料分类名称
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// 生产单明细生产类型
        /// </summary>
        public string PrdnType { get; set; }
        /// <summary>
        /// 生产单明细部门
        /// </summary>
        public string DetailDprtName { get; set; }
        /// <summary>
        /// 发放日期
        /// </summary>
        public DateTime? ReleaseDate { get; set; }
        /// <summary>
        /// 计划产量
        /// </summary>
        public decimal? PlanOutput { get; set; }
        /// <summary>
        /// 完成量
        /// </summary>
        public decimal? FinishNum { get; set; }
        /// <summary>
        /// 材料备注
        /// </summary>
        public string MaterialMemo { get; set; }
        /// <summary>
        /// 批准人
        /// </summary>
        public string AssessorName { get; set; }
        /// <summary>
        /// 生产单明细备注
        /// </summary>
        public string DetailMemo { get; set; }
        /// <summary>
        /// 生产部门
        /// </summary>
        public string DepartmentName { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string OperatorName { get; set; }
        /// <summary>
        /// 生产单明细Id
        /// </summary>
        public int DetailId { get; set; }

    }

    /// <summary>
    /// 带关联的生产单明细
    /// </summary>
    public class XPrdnDetail
    {
        /// <summary>
        /// 生产单明细实体
        /// </summary>
        public TB_PrdnDetail PrdnDetail { get; set; }
        public string MaterialName { get; set; }
        public string DepartmentCode { get; set; }
        public string DepartmentName { get; set; }
        public string CategoryName { get; set; }
        public string Unit { get; set; }
        public string PrdtPrjtCode { get; set; }
        public string TraderName { get; set; }
    }

    /// <summary>
    /// 带关联的生产工序
    /// </summary>
    public class XPrdnWorkstage
    {
        /// <summary>
        /// 生产工序实体
        /// </summary>
        public TB_PrdnWorkstage PrdnWorkstage { get; set; }
        /// <summary>
        /// 工序号
        /// </summary>
        public string WorkstageCode { get; set; }
        /// <summary>
        /// 工序名称
        /// </summary>
        public string WorkstageName { get; set; }
        /// <summary>
        /// 工时单位
        /// </summary>
        public string ManhourUnit { get; set; }
    }

    /// <summary>
    /// 带关联的生产材料
    /// </summary>
    public class XPrdnMaterial
    {
        /// <summary>
        /// 生产材料实体
        /// </summary>
        public TB_PrdnMaterial PrdnMaterial { get; set; }
        /// <summary>
        /// 材料代号
        /// </summary>
        public string MaterialCode { get; set; }
        /// <summary>
        /// 材料名称
        /// </summary>
        public string MaterialName { get; set; }
        /// <summary>
        /// 材料分类
        /// </summary>
        public string Category { get; set; }
        /// <summary>
        /// 材料规格
        /// </summary>
        public string Specs { get; set; }
        /// <summary>
        /// 有效期
        /// </summary>
        public DateTime? Expire { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }
    }
    #endregion

    #region 库存
    /// <summary>
    /// 带关联的物料库存
    /// </summary>
    public class XStock
    {
        /// <summary>
        /// 库存实体
        /// </summary>
        public TB_Stock Stock { get; set; }
        public string MaterialCode { get; set; }
        public string MaterialName { get; set; }
        public string Unit { get; set; }
        public string DepotCode { get; set; }
        public string DepotName { get; set; }
    }

    /// <summary>
    /// 查询库存单据
    /// </summary>
    public class QStockBill
    { 
        public int MId { get; set; }
        public string Code { get; set; }
        public string Type { get; set; }
        public DateTime? Date { get; set; }
        public int? DId { get; set; }
        public int? Material { get; set; }
        public decimal? Num { get; set; }
        public decimal? InNum { get; set; }
        public decimal? OutNum { get; set; }
        public int? Category { get; set; }
        public string BatchNo { get; set; }
        public int? Depot { get; set; }
        public int? Trader { get; set; }
        public int? Department { get; set; }
        public int? Businessman { get; set; }
        public int IoFlag { get; set; }
        public string IoDesc { get; set; }
        public string Memo { get; set; }
        public string DepotName { get; set; }
        public string MaterialCode { get; set; }
        public string MaterialName { get; set; }
        public string Specs { get; set; }
        public string Unit{ get; set; }
        public string CategoryName { get; set; }
        public string DepartmentName { get; set; }
        public string BusinessmanName { get; set; }
        public string SupplierName { get; set; }
        public string ClientName { get; set; }
    }

    /// <summary>
    /// 查询库存金额
    /// </summary>
    public class QStockAmount
    {
        public string Code { get; set; }
        public string Name { get; set; }
        public string Specs { get; set; }
        public decimal? BNum { get; set; }
        public decimal? NNum { get; set; }
        public decimal? Price { get; set; }
        public decimal? Amount { get; set; }
        public string Depot { get; set; }
        public string Category { get; set; }
        public string Unit { get; set; }
    }
    #endregion

    #region 审批返回
    /// <summary>
    /// 审批单据返回实体
    /// </summary>
    public class VerifyBillResult
    {
        /// <summary>
        /// 审批通过
        /// </summary>
        public bool Pass { get; set; }
        /// <summary>
        /// 返回消息
        /// </summary>
        public string Message { get; set; }
    }
    #endregion

    #region 存储过程处理返回结果
    /// <summary>
    /// 存储过程处理返回结果
    /// </summary>
    public class SPResult
    {
        /// <summary>
        /// 处理是否成功
        /// </summary>
        public bool Ok { get; set; }
        /// <summary>
        /// 异常消息
        /// </summary>
        public string Msg { get; set; }
    }
    #endregion
}
